<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      text-align: center;
    }
    input{
      width: 500px;
      height: 100px;
    }
    p{
      text-align: center;
      font-weight: 700;
    }
  </style>
</head>
<body>
  <p></p>
  <div>
    <input type="range" min="0" max="100" value="20" >
  </div>
  
  <script>
    const input = document.querySelector('input') 
    const p = document.querySelector('p')
    p.innerHTML = `分数:${input.value}` 
    input.addEventListener('click',function(){
      p.innerHTML = `分数:${input.value}`
    })
  </script>
</body>
</html>